package com.example.musicdemo.ui.fragment

import com.example.musicdemo.adapter.HomeAdapter
import com.example.musicdemo.base.BaseListAdapter
import com.example.musicdemo.base.BaseListFragment
import com.example.musicdemo.base.BaseListPresenter
import com.example.musicdemo.model.SongListBean
import com.example.musicdemo.presenter.impl.HomePresenterImp
import com.example.musicdemo.widget.HomeItemView


class HomeFragment: BaseListFragment<List<SongListBean>, SongListBean, HomeItemView>() {
    override fun getSpecialPresenter(): BaseListPresenter {
        return HomePresenterImp(this)
    }

    override fun getList(response: List<SongListBean>?): List<SongListBean>? {
        return response
    }

    override fun getSpecialAdapter(): BaseListAdapter<SongListBean, HomeItemView> {
        return HomeAdapter()

    }


}